package boot.dao;

import boot.domain.Role;
import boot.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserDao extends BaseMapper<User> {

    @Select("SELECT user_role.role_name from user_role where user_role.user_name = #{name}")
    List<Role> findRolesByName(String name);
}
